Export-Mailbox $user.......$Userlist = get-content D:\UserList\userlist.txt....... needs a modification -Please Help
Dear Experts,
$Userlist = get-content D:\UserList\userlist.txt
foreach ($user in $userlist) {Export-Mailbox $user -StartDate "23/05/2012" EndDate "24/05/2012" PSTFolderPath C:\temp\2usr_getlist.pst -DeleteContent}
As Suggested by
Mike Crowley in the following link I modified as per my requirement as above. here I have hiccup like all the exported contents from list of users say 50 in number are gettting stored in single PST........ :( ...........
Original Link and Suggestion by mike:
http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/309158d4-c330-4054-9bcc-a2d30694ac86
Is there a way I can create multiple PST based on UserName or Single PST with multiple folders for each listed user in Userlist.txt?
Regards,
ManjuManju Gowda
June 4th, 2012 3:25am
Hi
Do you mean that you want to create those pst file for each user?
If yes, In your command, the folder path will like
PSTFolderPath "C:\temp\$user.pst"
Cheers
Zi FengZi Feng
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
June 5th, 2012 3:24am
Hi
Do you mean that you want to create those pst file for each user?
If yes, In your command, the folder path will like
PSTFolderPath "C:\temp\$user.pst"
Cheers
Zi FengZi Feng
TechNet Community Support
June 5th, 2012 3:32am
Dear Zi,
100%....working!
Thanks a lot
Regards,
Manju
Manju Gowda
Free Windows Admin Tool Kit Click here and download it now
June 6th, 2012 6:27am